﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MethodWorx.Core.Random
{
    public class RandomNumberGenerator
    {
        private System.Random random;

        public RandomNumberGenerator()
        {
            this.random = new System.Random();
        }

        public virtual int Next(int min, int max)
        {
            return this.random.Next(min, max);
        }

        public virtual bool NextBoolean()
        {
            return (this.Next(0, 1) == 1);
        }
    }
}
